<div class="right_sidebar">
<!--<div class="">
	Today : <?php echo date("F j, Y, g:i a");?>
</div>-->
<script src="<?php bloginfo('template_directory');?>/lib/js/tabs/tabcontent.js" type="text/javascript"></script>
<link rel="stylesheet" href="<?php bloginfo('template_directory');?>/lib/js/tabs/css_tab.css" type="text/css" />
<div id="sidebarTabs">
	<ul id="sidebarTabs_title">
		<li><a href="#"  class="selected" rel="sidebarTabs_radom">Random</a></li>
		<li><a href="#"   rel="sidebarTabs_newly_added">Bài mới</a></li>
		
		<li><a href="#"  rel="sidebarTabs_commented">Bình luận</a></li>
		
	</ul>

	<div id="sidebarTabs_body">
		<ol class="random" id="sidebarTabs_radom">
			<?php 
				$featuredPost = new WP_Query();
				$featuredPost->query('showposts=10&orderby=DESC');
				$i=1;
				$load_div = '';
				while($featuredPost->have_posts()) : $featuredPost->the_post();
					$rand_img = mt_rand(1,3);
			?>
			<li>
				<div class="div_rand_post">
					<a class="img_rand" href='<?php the_permalink()?>'>
								<?php if(has_post_thumbnail()){
										
										the_post_thumbnail();
									} else { ?>
										<img src='<?php bloginfo('template_directory');?>/lib/img/img_not_found.jpg' alt='<?php the_title();?>' />    
								<?php }	
								?>
					</a>
					<div class="content_random">
					<div class="random_post"><a href="<?php the_permalink();?>"><?php the_title();?></a></div>
					<div class="info_post">
						<span><?php the_author_posts_link(); ?>&nbsp;on&nbsp;
						<?php the_time(__('M d, Y', 'leepro_datienrestaurant')) ?>
						</span>
					</div>
					</div>
				</div>
			</li>			
			<?php $i++; endwhile; wp_reset_query();?>
		</ol>
		<ol class="postbypost" id="sidebarTabs_newly_added">
			<?php get_archives('postbypost',10); ?>
		</ol>


		<ol class="ol_post" id="sidebarTabs_commented">
			<?php if (function_exists('get_recent_comments')) { ?>
			<?php get_recent_comments(); ?>
			<?php } ?>	
		</ol>
	</div><!-- /sidebarTabs_body -->
					
	<script type="text/javascript">
	var sidebarTabs=new ddtabcontent("sidebarTabs")
	sidebarTabs.setpersist(true)
	sidebarTabs.setselectedClassTarget("link")
	sidebarTabs.init()
	</script>
</div><!-- /sidebarTabs -->
<?php $options_travels = new leeproOptions();
if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('right_sidebar') ) : ?>

			<?php endif;
?>
</div>
